﻿/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *                                                                             *
 * \World_of_Tanks\res_mods\xvm\configs\@BadalXVM\elements.xc                  *
 *                                                                             *
 * =========================================================================== *
 *                                                                             *
 * All XVM parameters related to the GUI elements (experts only)               *
 *                                                                             *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
{
    // BadalXVM-specific variables (formatting macros)
    "formatLeftNick": "{{name%.20s~..}} <font color='#6E7465'>{{clan}}</font>",
    "formatRightNick": "<font color='#888E7E'>{{clan}}</font> {{name%.20s~..}}",
    "formatLeftVehicle": "<font face='Calibri' size='13'><font color='{{c:t-battles}}'>{{vehicle}}</font>  <font color='{{c:rating}}'>{{kb:3}}</font>  <font face='Wingdings' size='16' color='{{c:wn8}}'>\u00B5</font></font> ",
    "formatRightVehicle": " <font face='Calibri' size='13'><font face='Wingdings' size='16' color='{{c:wn8}}'>\u00B5</font>  <font color='{{c:rating}}'>{{kb:3}}</font>  <font color='{{c:t-battles}}'>{{vehicle}}</font></font>",
    "clanIcon": {
        // false - Disable Team/Clan logos in Battle Loading Screen.
        "show": true,
        // Position on the X axis, relative to the vehicle icon.
        "x": 0,
        // Position on the Y axis, relative to the vehicle icon.
        "y": 6,
        // Position on the X axis for right side (positive values run to the *inside* of the table).
        "xr": 0,
        // Position on the Y axis for right side.
        "yr": 6,
        // Width of the Team/Clan logo.
        "w": 16,
        // Height of the Team/Clan logo.
        "h": 16,
        // Transparency of the Team/Clan logo.
        "alpha": 90
    },
    // Minimap coordinates font
    "minimapFont": {
        "color": "0x8A855C",    // color
        "alpha": 100            // transparency
    },
    // Interface elements
    "elements": [
        // "_x"     - horizontal position
        // "_y"     - vertical position
        // "_alpha" - transparency

        // You can use constants, relative paths and mathematical expressions:
        // "_x": 100,
        // "_y": "HEIGHT / 2 + sin(minimap._alpha)",

        // Players panels
        {
            "$delay": 100,
            // Left panel
            "leftPanel": {
                "_y": null
            },
            // Right panel
            "rightPanel": {
                "_y": null
            },
            // Players panels switcher
            "switcher_mc": {
                "_y": "leftPanel._y - 28"
            }
        },
        // Sixth sense lamp
        {
            "$delay": 100,
            // Sixth sense lamp duration (in milliseconds). Example: "sixthSenseDuration": 7000,
            "sixthSenseDuration": "sixthSenseDuration",
            // Sixth sense lamp
            "sixthSenseIndicator": {
                // To use some settings in this section, you may need to remove "//" before "$interval". Reduces the performance!
                // "$interval": 0,
                "_alpha": 100,
                "_x": "sixthSenseIndicator._x",
                "_y": "sixthSenseIndicator._y"
            }
        },
        // Battle timer
        {
            "$delay": 100,
            // Battle timer
            "battleTimer": {
                "_x": "battleTimer._x - 0",
                "_y": "battleTimer._y - 0"
            }
        },
        // Minimap
        {
            "$delay": 100,
            // Minimap
            "minimap": {
                "_alpha": "minimap._alpha",
                // Vertical coordinates
                "rowA": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} },
                "rowB": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} },
                "rowC": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} },
                "rowD": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} },
                "rowE": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} },
                "rowF": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} },
                "rowG": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} },
                "rowH": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} },
                "rowJ": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} },
                "rowK": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} },
                // Horizontal coordinates
                "colsNames": { "textColor": ${"minimapFont.color"}, "_alpha": ${"minimapFont.alpha"} }
            }
        },
        // Debug panel (ping/lag/fps)
        {
            "$delay": 100,
            // Debug panel (ping/lag/fps)
            "debugPanel": {
                // To use some settings in this section, you may need to remove "//" before "$interval". Reduces the performance!
                // "$interval": 0,
                "_alpha": 100,
                "_x": "debugPanel._x",
                "_y": "debugPanel._y"
            }
        },
        // Battle score
        {
            "$delay": 100,
            // Battle score
            "fragCorrelationBar": {
                // To use some settings in this section, you may need to remove "//" before "$interval". Reduces the performance!
                // "$interval": 0,
                "_alpha": 100,
                "_x": "fragCorrelationBar._x",
                "_y": "fragCorrelationBar._y"
            }
        },
        // Capture bar
        {
            "$delay": 100,
            // Capture bar
            "teamBasesPanel": {
                "_alpha": 100,
                "_x": "teamBasesPanel._x + 0",
                "_y": "teamBasesPanel._y + 0"
            }
        },
        // Chat
        {
            "$delay": 100,
            // Chat
            "messenger": {
                "_alpha": 100,
                "_x": "messenger._x + 0",
                "_y": "messenger._y + 0"
            }
        },
        // Kill-log
        {
            "$delay": 100,
            // Kill-log
            "playerMessangersPanel": {
                "_alpha": 100
            }
        },
        // Ammo bar
        {
            "$delay": 100,
            // Ammo bar
            "consumablesPanel": {
                "_alpha": 100,
                "_x": "consumablesPanel._x + 0",
                "_y": "consumablesPanel._y - 0"
            }
        }
    ]
}